#include<bits/stdc++.h>
using namespace std;

int main()
{
	double a;
	cin>>a;
	cout<<(int)a<<" "<<a-(int)a; 
    return 0;
}

